<th:block th:fragment="frag(app)">
	<th:block th:with="meta=${app.object.data.get('meta')}">
		<!-- 加载头部导航，例如：系统管理 / 用户
		<th:block th:include="topNav :: frag(${bigUser.currentMenu})">
		</th:block>
		-->
		<!-- Main content -->
		<section class="content">
			<div class="row">
				<div class="col-md-12">
					<div class="box">
						<form>
							<div class="box-body with-border">
								<th:block th:if="${app.selector == true and app.container == 'tab'}" >
									<th:block th:include="meta/list/buttons/select :: frag(${app.selectorsingle})"></th:block>
									<th:block th:include="meta/list/buttons/selectCancel"></th:block>
								</th:block>
								<th:block th:if="${meta}">
									<th:block th:each="btn : ${app.listView.buttons}" th:if="${app.selector == false and btn.data.get('selectType') != 'single'}" >
										<div class="btn-group">
											<th:block th:include="${btn.url} :: frag(${btn})"></th:block>
											<button type="button" class="btn bg-black btn-sm dropdown-toggle" data-toggle="dropdown" style="height:28px">
												<span class="caret"></span>
												<span class="sr-only"></span>
											</button>
											<th:block th:include="meta/biz/button-dropdown :: frag(${btn.view}, ${btn})"></th:block>
										</div>
									</th:block>
									<div class="btn-group">
										<button type="button" class="btn bg-black btn-sm dropdown-toggle" data-toggle="dropdown" style="height:28px">
											<span>列表视图</span>
											<span class="caret"></span>
											<span class="sr-only"></span>
										</button>
										<th:block th:include="meta/biz/view-dropdown :: frag(${app.listView})"></th:block>
									</div>
								</th:block>
								<th:block th:unless="${meta}">
									<th:block th:each="btn : ${app.listView.buttons}" th:if="${app.selector == false and btn.data.get('selectType') != 'single'}" >
										<th:block th:include="${btn.url} :: frag(${btn})"></th:block>
									</th:block>
								</th:block>
								<div class="pull-right">
									<th:block th:each="sp : ${app.searchView.properties}">
										<th:block th:include="${sp.url} :: frag(${sp})"></th:block>
										<div th:if="${meta == 'true' && sp.type != 'hidden'}" class="btn-group">
											<button type="button" class="btn bg-black btn-sm dropdown-toggle" data-toggle="dropdown">
												<span class="caret"></span>
												<span class="sr-only"></span>
											</button>
											<th:block th:include="meta/biz/list-dropdown :: frag(${app.searchView}, ${sp})"></th:block>
										</div>
									</th:block>
									<button type="button" class="btn btn-primary fa fa-search" data-app-buttontype="search"> 查询</button>
									<button type="button" class="btn bg-black btn-sm" th:if="${meta}" th:data-meta-view="${app.searchView.id}" th:text="${'查询视图'}">
									</button>
								</div>
							</div>
							<div th:data-app-list="|${app.domprefix}-${app.id}-list|" th:data-app-listsingleselect="${app.listView.isListSingleSelect()}"
								 th:data-app-selector="${app.selector}" th:data-app-selectorsingle="${app.selectorsingle}" th:data-app-url="|/meta/${app.type}/loadList|">
							</div>
						</form>
						<th:block th:if="${meta}">
							<th:block th:include="meta/biz/modal-create-property :: frag(${app.listView})"></th:block>
							<th:block th:include="meta/biz/modal-update-viewproperty :: frag(${app.listView})"></th:block>
							<th:block th:include="meta/biz/modal-create-relation :: frag(${app.listView})"></th:block>
							<th:block th:include="meta/biz/modal-create-dictionary :: frag(${app.listView})"></th:block>
							<th:block th:include="meta/biz/modal-create-button :: frag(${app.listView})"></th:block>
							
							<th:block th:include="meta/biz/modal-create-property :: frag(${app.searchView})"></th:block>
							<th:block th:include="meta/biz/modal-update-viewproperty :: frag(${app.searchView})"></th:block>
							<th:block th:include="meta/biz/modal-create-relation :: frag(${app.searchView})"></th:block>
							<th:block th:include="meta/biz/modal-create-dictionary :: frag(${app.searchView})"></th:block>
						</th:block>
					</div>
					<!-- /.box -->

				</div>
				<!-- /.col -->
			</div>
		</section>
	</th:block>
<!-- /.content -->
</th:block>